<template>
  <h1>{{ userName }}，欢迎您！您是{{ adminRole }}<br/>ID:{{ adminId }}</h1>
</template>
<script>
export default {
  data() {
    return {
      userName: '',
      adminRole: ''
    }
  },
  created() {
    this.userName = localStorage.getItem('userName')
    this.adminRole = localStorage.getItem('adminRole')
    this.adminId = localStorage.getItem('adminId')
  }
}
</script>
<style>
h1 {
  text-align: center;
}
</style>
